
# Set the name and the root directory of this example.
# NOTE: Also make sure you add this subdirectory to the end
# of the master CMakeLists.txt in the root of SceneExpression
#
SET( EXAMPLE_NAME shapesExample )
SET( EXAMPLE_ROOT ${PROJECT_SOURCE_DIR}/apps/examples/${EXAMPLE_NAME} )


# List all the  files belonging to this example
#
ADD_EXECUTABLE( ${EXAMPLE_NAME}  ${EXECUTABLE_TYPE}  
    ${EXAMPLE_ROOT}/src/main.cpp 
    ${EXAMPLE_ROOT}/src/MyApp.h 
    ${EXAMPLE_ROOT}/src/MyApp.cpp
)


# List all the libraries to link against
# most core libs are already in TARGET_LINK_LIBRARIES
# otherwise simply list them afterwards separated by spaces
#
TARGET_LINK_LIBRARIES( ${EXAMPLE_NAME}  ${PROJECT_NAME}  ${TARGET_LINK_LIBRARIES} )


# Define the output path for the executable
# Please note that some IDEs add a "Release" or "Debug" to this
#
SET_TARGET_PROPERTIES( ${EXAMPLE_NAME} PROPERTIES 
	RUNTIME_OUTPUT_DIRECTORY  ${EXAMPLE_ROOT}/bin
)


# Copy some files to the path of the executable after building
# This is useful to place dynamic libraries where the
# executable can find it. 
#
IF( WIN32 )
	POST_BUILD_COPY_FILE( "${PNG_DLL_RUNTIME}"  "${EXAMPLE_ROOT}/bin/Release" )
	POST_BUILD_COPY_FILE( "${ZLIB_DLL_RUNTIME}"  "${EXAMPLE_ROOT}/bin/Release" )
ENDIF()